package com.boomcat.boomcat.dao;

import com.boomcat.boomcat.domain.Expert;
import com.boomcat.boomcat.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ExpertDao {
    @Select("select * from tb_expert where account=#{account} and password=#{password}")
    Expert selectByAccountAndPasswordUser(String account, String password);
    @Select("select * from tb_expert")
    List<Expert> list();
}
